//
//  CollectionViewCell.swift
//  05CollectionView
//
//  Created by Clover on 2018/4/16.
//  Copyright © 2018年 youbing. All rights reserved.
//

import UIKit

class CollectionViewCell: UICollectionViewCell {
    @IBOutlet weak var title: UILabel!
    @IBOutlet weak var image: UIImageView!
    var interest: interest! {
        didSet {
            updateUI()
        }
    }
    
    func updateUI() {
        title.text = interest.title
        image.image = interest.featuredImage
    }
}
